package mx.com.fractal.ristorante.dto;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import mx.com.fractal.ristorante.util.Schema;

@XmlRootElement(name="cliente")
@XmlAccessorType(XmlAccessType.NONE)
@Schema("ristorant_e")
@Table(name="cliente")
public class ClienteDTO extends PersonaDTO {

	@XmlAttribute(name="id-cliente")
	@Column(name="id_cliente")
	private Integer idCliente;
	
	@XmlElement(name="tipo-persona")
	@Column(name="tipo_persona")
	private TipoPersona tipoPersona;
	
	@XmlElement(name="razon-social")
	@Column(name="razon_social")
	private String razonSocial;

	public Integer getIdCliente() {
		return idCliente;
	}

	public void setIdCliente(Integer idCliente) {
		this.idCliente = idCliente;
	}

	public TipoPersona getTipoPersona() {
		return tipoPersona;
	}

	public void setTipoPersona(TipoPersona tipoPersona) {
		this.tipoPersona = tipoPersona;
	}

	public String getRazonSocial() {
		return razonSocial;
	}

	public void setRazonSocial(String razonSocial) {
		this.razonSocial = razonSocial;
	}
	
}
